package com.example.exceptions;

import com.example.result.MSG;

/**
 * 自定义异常
 * @Author: chen
 * @CreateTime: 2022-08-16
 * @Version: 1.0
 */
public class CustomException extends RuntimeException{

    private MSG responseEnum;

    public CustomException(MSG responseEnum) {
        super("具体异常信息为：" + responseEnum.getMessage());
        this.responseEnum = responseEnum;
    }

    public MSG getResponseEnum() {
        return responseEnum;
    }

    public void setResponseEnum(MSG responseEnum) {
        this.responseEnum = responseEnum;
    }

}
